public static function isValid($collection)
    {
        if (false === is_array($collection) && false === ($collection instanceof Collection)) {
            return false;
        }

        return true;
    }
public static function isValid($collection)
    {
        if (false === is_array($collection) && false === ($collection instanceof Collection)) {
            return false;
        }

        return true;
    }
public static function isValid ( $ collection ) { if ( false === is_array ( $ collection ) && false === ( $ collection instanceof Collection ) ) { return false ; } return true ; }
Is Valid Collection

@param mixed $collection

@return bool
Is Valid Collection