If you have a wallet address, you can search the blockchain for transactions that are written to that wallet address. Ifyou find any, you must then check they aren't already “spent” but that isn't hard either. If you have unspent transactions, then you have bitcoin “in that wallet”. ifyou don't, you don't.