IfAThenAElseB

Chooses between the two parameters based on whether the first is nullptr or not.