public function eachPermission(array $permissions, callable $callback)
    {
        $permissions = array_flatten($permissions);

        foreach ($permissions as $permission) {
            if ($permission = $this->preparePermission($permission)) {
                $callback($permission);    
            }
        }
    }