Draft module on searching in an array