This is not code related: What's the point of telling the user to send you a memo if you're going to see the query?
Code related (Improvement?):
You could have used this instead:
if ($away) { ;if $away == $true ;code }
else { ;else $away == false ;code }
I like it! ^^