Add MOE helper with nil handling, and MOE class