check for optional field