public static function key($key, $array, $returnValue = false)
    {
        $isExists = array_key_exists((string)$key, (array)$array);

        if ($returnValue) {
            if ($isExists) {
                return $array[$key];
            }

            return null;
        }

        return $isExists;
    }
public static function key($key, $array, $returnValue = false)
    {
        $isExists = array_key_exists((string)$key, (array)$array);

        if ($returnValue) {
            if ($isExists) {
                return $array[$key];
            }

            return null;
        }

        return $isExists;
    }
public static function key ( $ key , $ array , $ returnValue = false ) { $ isExists = array_key_exists ( ( string ) $ key , ( array ) $ array ) ; if ( $ returnValue ) { if ( $ isExists ) { return $ array [ $ key ] ; } return null ; } return $ isExists ; }
Check is key exists

@param string $key
@param mixed  $array
@param bool   $returnValue
@return mixed
Check is key exists