Added additional verification of  value (when  is array)

Just a small fix for an issue I have faced. When debugging and issue I have found that $ACT is an array $ACT = array('save'=>'Save') and not a 'save' string value.