added ability to not log the outcome, and added the return bool.