Check if bg exists before loading