conditional statement for check_out