Jon, Craig, and Josh – thank you! You're all correct. I changed line 49 to `user_id = session_data && session_data['current_person_id']` and all is well. Many thanks! Andy