Remove redundant check that was blowing up in Safari