
Allows the type checking to be done by the compiler rather than the developer. It was possible here because there is only two types of view, and the first type will only have one or zero entries in the adapter. Thus, I've swapped the usage of a `String` type for a `null` and checked for null instead of `instanceof String`.