Changed checking if its element or not