def has_parameter(param, params):
  """
  Checks whether the parameter param is present in the params map.

  Args:
    param       A parameter name
    params  A dictionary of parameters

  Returns:
    True if params contains param.
    Returns False otherwise.
  """
  return params.has_key(param)