Check whether Image on ImageView is present or not

Dimension size = WebElement.getSize();
Boolean ImagePresent;

if(size…height > 0 && size.width > 0)
ImagePresent = true;
ImagePresent = false;
Always getting true, this is not correct solution. Help me with right one

Check the source attribute for the element.

Will you please provide more detail about this, Thanks in Advance