can't we replace this method with 

interfaces.empty? || networks.any?