Client side undefined checks