Cleanup isActionItem method