def get_var_mode(prefix):
    """Returns False if { in prefix.

    ``prefix`` -- Prefix for the completion

    Variable completion can be done in two ways and completion
    depends on which way variable is written. Possible variable
    complations are: $ and ${}. In last cursor is between
    curly braces.
    """
    return False if '{' in prefix else True