Better nil checking.