When you try to attempt to the field that not present in SOQL query, you get error like that:
System.SObjectException: SObject row was retrieved via SOQL without querying the requested field: Opportunity.Account AnonymousBlock: line 5, column 1
How I can to check that the field field is present in SOQL query?