Some hasattr became in conditions, because I am not smart