ettercap: move conditional into method