"Value is not an Array" ); public function isValid($value) { if (!is_array($value)) { $this->_error(self::NOT_ARRAY); return false; } return true; } }