Idml support

`else:` is redundant here, the previous `if` branch will always return.