https://vuyisile.com/python-hasattr-function/
Python hasattr() Function