Check object type before trying to stupidily access _meta attribute