Basic guard implementation

Added a basic implementation for guards when encountering if- or
cond-expressions.