public static function isCountable($value): bool
    {
        if (is_array($value)) {
            return true;
        }

        if (is_object($value) && ($value instanceof Countable)) {
            return true;
        }

        return false;
    }
public static function isCountable($value): bool
    {
        if (is_array($value)) {
            return true;
        }

        if (is_object($value) && ($value instanceof Countable)) {
            return true;
        }

        return false;
    }
public static function isCountable ( $ value ) : bool { if ( is_array ( $ value ) ) { return true ; } if ( is_object ( $ value ) && ( $ value instanceof Countable ) ) { return true ; } return false ; }
Checks if value is countable

@param mixed $value The value

@return bool
Checks if value is countable