remove redundant static object check