Fixing if helper to handle empty array as false