I would prefer three cases here:

'undefined' -> get_branch_keys;
[] -> get_branch_keys;
Rules -> Rules