should we move all these != null && !empty checks into a helper, where we simply pass the collection in ?