available() accepts array with permissions

if available(permissions) is an array, all permissions in this array must exist