Helper method to determine if a parameter is true. Prevents
accidental NullPointerExceptions when comparing or or using
the parameter value.
Parameters: parameter - The value to be determined as boolean true or false. boolean true or false according to the @param value.