Except as otherwise provided in this chapter, every person is competent to be a witness.