testing if statement for browser