file_exists works same for directories as well. So if you have image name empty in database so that path becomes from
this
site_url()."theme/default/images/". $pros['image']
to
site_url()."theme/default/images/"
which is a valid and available directory for file_exists function.
So, always use a file_exists function with combination of is_file as below:
if(!file_exists(site_url()."theme/default/images/". $pros['image']) && !is_file(site_url()."theme/default/images/". $pros['image'])){
// diplay no image
} else {
// display actual image
}