Checks whether an expression is ground.
The expression that is to be checked.
true if the given expression does not contain any free variables, false otherwise.