remove unneeded dependency
use a custom plainObject check troughout all the code for consistency