Refactoring make_toast to account for nil