public static function isKeyExists(array $properties, ...$name)
    {
        $args = func_get_args();

        for ($i = 1; $i < count($args); $i++) {
            if (!array_key_exists($args[$i], $properties)) {
                return false;
            }
        }

        return true;
    }
public static function isKeyExists(array $properties, ...$name)
    {
        $args = func_get_args();

        for ($i = 1; $i < count($args); $i++) {
            if (!array_key_exists($args[$i], $properties)) {
                return false;
            }
        }

        return true;
    }
public static function isKeyExists ( array $ properties , ... $ name ) { $ args = func_get_args ( ) ; for ( $ i = 1 ; $ i < count ( $ args ) ; $ i ++ ) { if ( ! array_key_exists ( $ args [ $ i ] , $ properties ) ) { return false ; } } return true ; }
Checks if a key exists in a given array

@param array $properties
@param string $name

@return bool
Checks if a key exists in a given array