fix(utils): update isClient
to check document
too
#3329
Merged
isClient
to check document
too
#3329