check for costs before trying to get the wallet trait