Fix the check for the site object