refactor: explicit condition check in OCPP stack