Replaced inline `if` with `or`