Try to keep a consistency in your approach. In 'exist' method you trim the value, here it's not trimmed or trimmed somewhere else. No I have a question "Where is it trimmed?" ))