[FIX] mail: fixed hasattr on hasattr.