Basic conditional statement using true or false in WebStorm