Please move this out of this `if`, it's really unreadeable.