Checks whether a value is an object, because typeof is a troll