Function isDefinedAndNotNull