* Checks wether a request element is set
* @param $element Name of the request element we want to check
* @return $isSet Wether the request element is set
- * @throws MissingArrayElementsException Thrown if a request element is not set
*/
public function isRequestElementSet ($element) {
// Is this element found?
if (!isset($this->requestData[$element])) {
- // Then throw an exception
- throw new MissingArrayElementsException(array($this, 'requestData', $element), self::EXCEPTION_MISSING_ELEMENT);
+ // Then return false
+ return false;
} // END - if
// All clear
// Initialize value
$value = null;
- try {
- if ($this->isRequestElementSet($element)) {
+ if ($this->isRequestElementSet($element)) {
$value = $this->requestData[$element];
- } // END - if
- } catch (MissingArrayElementsException $e) {
- // Do nothing here
- }
+ } // END - if
// Return the element's value
return $value;