If there shall be a dwelling or dwellings erected on the same side of the street within 300 feet of either side line of a lot, the front yard depth of such lot shall be not less than the average depth of the front yards of all such dwellings within said distance. If there shall be no dwelling on the same side of the street within said distance, the required front yard depth shall be not less than the average depth of the front yards of any dwellings on the opposite side of the street within a distance of 300 feet of either side lot line, extended to the opposite side of said street.