use `detect` instead of `select {...}.first`