Symfony Form Get Errors As Array Python Questions For If Statement