```
return valid ? position : undefined;
```