scala: Refactor membership check into monadic getOrElse
scala: Refactor membership check into monadic getOrElse

tvmaly/autocomplete,tvmaly/autocomplete,vivekn/autocomplete,vivekn/autocomplete,tvmaly/autocomplete,vivekn/autocomplete,tvmaly/autocomplete,colindean/autocomplete,colindean/autocomplete,colindean/autocomplete,colindean/autocomplete,colindean/autocomplete,vivekn/autocomplete,tvmaly/autocomplete,vivekn/autocomplete