A note on the restriction theorem and geometry of hypersurfaces