if you're going to keep on using this as a conditional, abstract it into a `static` helper function