remove useless len check

empty dict will be ignored, so it really only saves us a get, a
conditional and a dict