public function hasAttribute($attrName)
	{

		// In default attributes
		if (array_key_exists($attrName, $this->_attributes)) return true;

		// A getter available?
		if (method_exists($this, "__get_$attrName")) return true;			

		return false;


	}
public function hasAttribute($attrName)
	{

		// In default attributes
		if (array_key_exists($attrName, $this->_attributes)) return true;

		// A getter available?
		if (method_exists($this, "__get_$attrName")) return true;			

		return false;


	}
public function hasAttribute ( $ attrName ) { // In default attributes if ( array_key_exists ( $ attrName , $ this -> _attributes ) ) return true ; // A getter available? if ( method_exists ( $ this , "__get_$attrName" ) ) return true ; return false ; }
Check if given attribute exists
@param  string  Attribute name
@return boolean           True or false
Check if given attribute exists