if this is string, is it possible to use isEmpty() here ?