Check for $newPermissions is_array