https://researchdatapod.com/how-to-solve-python-typeerror-bool-object-is-not-subscriptable/
Python TypeError: 'bool' object is not subscriptable