Incorrectly relying on values that could be undefined for determing class
information