This method is used in the site layout, so most of the time entry will be nil.