Simplify conditional logic for openFL targets