omg an if statement

Amazing! also changed console.log to alerts.