Prevented index out of bounds exception for the case of an empty chord
list