title: Checking if an image exists before adding it as a background image
body: <p>There are a few solutions on stack regarding the use of .error() on images to determine if they exist and adding placeholders if they don't, but they all discuss its use strictly on <code>&lt;img&gt;</code> tags. Has anyone performed this type of validation to images that are not being added to <code>&lt;img&gt;</code> tags but rather as backgrounds on divs? </p>
  
  <p>We have a set of images coming in from a 3rd party API and there are cases where the entire set of image urls' that are returned do not exist. What would be the proper method in validating a set of images (destined to be background images) to determine if they exist and then apply proper placeholders if the validation(s) fails?</p>