Simpler undefined checks