Fixed js if statement for ACF5