The function checks if the input string contains the letter 'a' and appends the appropriate message to the string.
[CODE]:
```python
def check_for_a(string):
    if 'a' in string:
        return string + " YES a"
    else:
        return string + " NO a"
```

Please let me know if you need further information or if there's anything else I can assist you with.