Return null when if and unless params are undefined