function hasAttribute($attr, $compare = 'total', $case_sensitive = false) { return (bool) $this->findAttribute($attr, $compare, $case_sensitive); }