Fixed isNotNull functionality