adding some ruby flavor to the null check.