diff --git a/src/Pecee/Http/Input/Input.php b/src/Pecee/Http/Input/Input.php index bdbb7a4..caed6bc 100644 --- a/src/Pecee/Http/Input/Input.php +++ b/src/Pecee/Http/Input/Input.php @@ -97,6 +97,10 @@ class Input { return $default; } + public function exists($index) { + return ($this->getObject($index) !== null); + } + public function setGet() { $this->get = new InputCollection();