Revised User.get_last_checkin() to handle case where user does not have any checkins. Also unwind the nested if-then in views.forecast() for clarity.