public function __isset(string $name): bool
    {
        $methodName = str_replace('_', '', ucwords($name, '_'));
        $methodName = 'isset' . $methodName;

        if (method_exists($this, $methodName)) {
            return $this->$methodName();
        }

        return property_exists($this, $name);
    }
public function __isset(string $name): bool
    {
        $methodName = str_replace('_', '', ucwords($name, '_'));
        $methodName = 'isset' . $methodName;

        if (method_exists($this, $methodName)) {
            return $this->$methodName();
        }

        return property_exists($this, $name);
    }
public function __isset ( string $ name ) : bool { $ methodName = str_replace ( '_' , '' , ucwords ( $ name , '_' ) ) ; $ methodName = 'isset' . $ methodName ; if ( method_exists ( $ this , $ methodName ) ) { return $ this -> $ methodName ( ) ; } return property_exists ( $ this , $ name ) ; }
Check if a property is set.

@param string $name The property to check

@return bool
Check if a property is set .