[cobbler] use empty instead of python style checking