protected static function _hasKeyValue($target, $key, $value) {
    return (property_exists($target, $key) && $target->{$key} === $value);
  }
protected static function _hasKeyValue($target, $key, $value) {
    return (property_exists($target, $key) && $target->{$key} === $value);
  }
protected static function _hasKeyValue ( $ target , $ key , $ value ) { return ( property_exists ( $ target , $ key ) && $ target -> { $ key } === $ value ) ; }
Returns true if the given target has the given key and its
value equals is the given value.

@param stdClass $target the target object.
@param string key the key to check.
@param mixed $value the value to check.

@return bool true if the target has the given key and its value matches.
Returns true if the given target has the given key and its value equals is the given value .