protected function isFeedLink(\DomElement $element) : bool
    {
        return $element->hasAttribute('type')
                && in_array($element->getAttribute('type'), self::VALID_TYPES);
    }
protected function isFeedLink(\DomElement $element) : bool
    {
        return $element->hasAttribute('type')
                && in_array($element->getAttribute('type'), self::VALID_TYPES);
    }
protected function isFeedLink ( \ DomElement $ element ) : bool { return $ element -> hasAttribute ( 'type' ) && in_array ( $ element -> getAttribute ( 'type' ) , self :: VALID_TYPES ) ; }
Tells if the given Element contains a valid Feed Url
@param  DomElement $element
@return bool
Tells if the given Element contains a valid Feed Url