if statement for empty output