Hotfix/issue26

This PR fixes the issue by searching in strict mode using `array_search` and in cases no value was found searching by string representation with `foreach`