Simplify some nil checks.