Doctrine Common

[GH-235] Improve performance of if key exists in the array