src/LdapTools/Object/LdapObject.php
public function has($attribute, $value = null)
    {
        if (!array_key_exists(strtolower($attribute), array_change_key_case($this->attributes))) {
            return false;
        }

        return is_null($value) ?: $this->attributeHasValue($attribute, $value);
    }
public function has($attribute, $value = null)
    {
        if (!array_key_exists(strtolower($attribute), array_change_key_case($this->attributes))) {
            return false;
        }

        return is_null($value) ?: $this->attributeHasValue($attribute, $value);
    }
public function has ( $ attribute , $ value = null ) { if ( ! array_key_exists ( strtolower ( $ attribute ) , array_change_key_case ( $ this -> attributes ) ) ) { return false ; } return is_null ( $ value ) ? : $ this -> attributeHasValue ( $ attribute , $ value ) ; }
Check to see if a specific attribute exists. Optionally check if it exists with a specific value.

@param string $attribute
@param mixed $value
@return bool
Check to see if a specific attribute exists . Optionally check if it exists with a specific value .