replace (eq foo nil) with (null foo)