Made isNilOrEmpty method easier to read