I want to check it the @session[:user].id exists in an if statement.
However, I the user has not yet logged in, the following error occurs.
How does one check if this (or any other) cookie exists without getting
Called id for nil, which would mistakenly be 4 – if you
really wanted the id of nil, use object_id