isComponent checks for component.json and not just .json