Empty list check instead of empty string