fixing 'not' logic to return 'true' when the given condition returns null