check if filename is empty.