shortify if condition to functional programming goodies.