we should be checking if the app is a class

Hopefully `object.class` always returns something that is_a?(Class), so
the previous logic didn't really make sense.