public function checkElementsInHead($path, $attribute)
    {
        foreach ($this->_head as $element) {
            if (basename($element->getAttribute($attribute)) == basename($path)) {
                return true;
            }
        }

        return false;
    }
public function checkElementsInHead($path, $attribute)
    {
        foreach ($this->_head as $element) {
            if (basename($element->getAttribute($attribute)) == basename($path)) {
                return true;
            }
        }

        return false;
    }
public function checkElementsInHead ( $ path , $ attribute ) { foreach ( $ this -> _head as $ element ) { if ( basename ( $ element -> getAttribute ( $ attribute ) ) == basename ( $ path ) ) { return true ; } } return false ; }
Determines if two elements are duplicates based on an attribute and value

@param string $path
The value of the attribute
@param string $attribute
The attribute to check
@return boolean
Determines if two elements are duplicates based on an attribute and value