I imagine this is the case as well. Otherwise it becomes a "he says, she says" that the cops have to settle (does the person pretending to be the landlord have the actual authority, etc), something the courts are best positioned to deal with.