Fix regression bug #34858 ensure searchPermissions returns an empty array instead of false, and fix batchDataToArray function to parse permission results properly for arrays