OpenSkill\Datatable\Queries\Parser\Datatable110QueryParser::isArrayAndHasKey PHP Method

isArrayAndHasKey() private method

Helper function that will check if an array key exists
private isArrayAndHasKey ( mixed $array, string $key ) : boolean
$array mixed
$key string key to check
return boolean true if array & exists, false otherwise
    private function isArrayAndHasKey($array, $key)
    {
        if (!is_array($array)) {
            return false;
        }
        if (array_key_exists($key, $array)) {
            return true;
        }
        return false;
    }