perhaps use `?:` for easier readable code?