Verification of the badge field to check if its URL or badge object and return appropriate results