Add is_array check to Workflow class