function hasAttribute($attr, $compare = 'total', $case_sensitive = false) {
		return ((bool) $this->findAttribute($attr, $compare, $case_sensitive));
	}
function hasAttribute($attr, $compare = 'total', $case_sensitive = false) {
		return ((bool) $this->findAttribute($attr, $compare, $case_sensitive));
	}
function hasAttribute ( $ attr , $ compare = 'total' , $ case_sensitive = false ) { return ( ( bool ) $ this -> findAttribute ( $ attr , $ compare , $ case_sensitive ) ) ; }
Checks if node has attribute
@param string|int$attr Negative int to count from end
@param string $compare Find node using "namespace", "name" or "total"
@param bool $case_sensitive Compare with case sensitivity
@return bool
Checks if node has attribute