ADDED comments and simplified code
CHANGED to check all incoming params
CHANGED foreach values and if statement
REMOVED first array_key_exists
Merge pull request #16 from SoSocio/ChangedAddConditionMethod

ADDED comments and simplified code