return null instead of empty string for empty nodes