you don't need "else" here. Just can just do 
```
if(captureGroups) {
  return captureGroups[groupNumber];
}
return false
```