Use background_exists() instead of a >=0 check.