check for nil value in uri