refactors more instances ot object.nil? to .object == false, fixes glitches