Add changes for new search for blocks

this function looks like recursive .filter or http://lodash.com/docs#find
let's better refactor it.