fix front() method to detect queue empty