here you could just say 'if errors' since you are setting it to [] right above it will either be [] or have something in it. you can then just say errors since that will be false if it's [] or true if it has any items in the list.