Change the empty check to support d8 element contents
Added Details element