public static function falsey($check, array $falseyValues = [])
    {
        if (!$falseyValues) {
            $falseyValues = [false, 0, '0'];
        }

        return in_array($check, $falseyValues, true);
    }
public static function falsey($check, array $falseyValues = [])
    {
        if (!$falseyValues) {
            $falseyValues = [false, 0, '0'];
        }

        return in_array($check, $falseyValues, true);
    }
public static function falsey ( $ check , array $ falseyValues = [ ] ) { if ( ! $ falseyValues ) { $ falseyValues = [ false , 0 , '0' ] ; } return in_array ( $ check , $ falseyValues , true ) ; }
Validates if given value is falsey.

The list of what is considered to be falsey values, may be set via $falseyValues.

@param bool|int|string $check Value to check.
@param array $falseyValues List of valid falsey values, defaults to `[false, 0, '0']`.
@return bool Success.
Validates if given value is falsey .