Using === operator instead of == to check against undefined