Fixed string comparison with nil