Added functions for nullity checks