Refactors to confirm actions is array