Fixed negated check in Safari code