Is `resources_list` redundant? `actions_list.keys()` has the same data and you can just do `if resource_name in actions_list`.