Missed the return statement on the environment validation check.