public function has($var)
    {
        if (!is_string($var)) {
            throw new \InvalidArgumentException('Expected a string. Got: ' . (is_object($var) ? get_class($var) : gettype($var)));
        }
        return isset($this->{$var}) && !empty($this->{$var});
    }
public function has($var)
    {
        if (!is_string($var)) {
            throw new \InvalidArgumentException('Expected a string. Got: ' . (is_object($var) ? get_class($var) : gettype($var)));
        }
        return isset($this->{$var}) && !empty($this->{$var});
    }
public function has ( $ var ) { if ( ! is_string ( $ var ) ) { throw new \ InvalidArgumentException ( 'Expected a string. Got: ' . ( is_object ( $ var ) ? get_class ( $ var ) : gettype ( $ var ) ) ) ; } return isset ( $ this -> { $ var } ) && ! empty ( $ this -> { $ var } ) ; }
Check if a parameter has a specific variable and if it set.

@param string $var
@return bool
Check if a parameter has a specific variable and if it set .