Check for empty input