Use contains instead of checking return value of get