added block to use as optional nil or object value return, no longer removing nulls from dictionarys automatically