nil is falsed when uesd in a boolean context not when you use the == method of an object