If the actor is null, then actor.type would raise a type Error