What I am trying to do is see if `session.checkout.info.gender_1` exists then if it does also check whether it is Male or Female. Depending on which one it is have the value for cfpdfformparam either M or F so that it fits better on the form. I have tried "IsDefined", is not "". Will someone please tell me where I am going wrong? 

```
    <cfif structKeyExists(session, 'checkout.info.gender_1') and trim("session.checkout.info.gender_1") neq "Female">
        <cfpdfformparam name="sex" value="M">
</cfif> <!---Section1 Owner Sex--->
    <cfif structKeyExists(session, 'checkout.info.gender_1') and trim("session.checkout.info.gender_1") neq "Male">
        <cfpdfformparam name="sex" value="F">
</cfif>

```