Also, if checking a pointer, do not use boolean, but check == nil or != nil.