move conditional into `only_if`