added condition for handling empty input