import { get } from 'lodash' ; import { ShardSerialized } from '../types' ; export function hasSearch ( profileResponse ) { const aggs = get ( profileResponse , '[0].searches' , [ ] ) ; return aggs . length > 0 ; }