convert null and undefined to false