Helps to set sender before checking if it's not null.