another way to check if var is empty