if (!is_array($data)) {
            throw new Exception("Cannot add asset - \$data must be an array"); 
            return false;
        }