get_cookie looks like a better name for this function, also please, put the comment in the line before