What about:

1. If object == nil
1. If object is of a different class