You may want to add a [nil check](https://github.com/specta/expecta/blob/746cc56c8b8c46e06a9d46be5141834013082602/src/matchers/EXPMatchers%2BbeKindOf.m#L4-L9) as a prerequisite.