Refactor of return result in Zoo#search