Check for property existance, not value

This will fix a problem with a badge's x or y being 0.