The Township Board of Supervisors or the Planning Commission, if
authorized to approve applications within this chapter, may grant
a modification of the requirements of one or more provisions if the
literal enforcement will exact undue hardship because of peculiar
conditions pertaining to the land in question, provided that such
modification will not be contrary to the public interest and that
the purpose and intent of this chapter is observed.