check if it's set before assignment