Add CodeNarc support

isEmpty checks notNull anyway, so there is no need to be defensive here.