check is object and has attribute