LPS-39182 Use the ArrayUtil.isEmpty method in all the portal

@robertoDiaz please apply these changes to plugins once they've been pushed to portal/master.