sub isEmpty { return defined $_[0] ? !length($_[0]) : 1; }