Revert "Removed redundant check."
Revert "Removed redundant check."

This reverts commit c049cfce9ccb7c3571cefe2414d2824ebd6a7b4f.

foam-framework/foam2,foam-framework/foam2,TanayParikh/foam2,TanayParikh/foam2,jacksonic/vjlofvhjfgm,foam-framework/foam2,foam-framework/foam2,foam-framework/foam2,TanayParikh/foam2,TanayParikh/foam2,jacksonic/vjlofvhjfgm,jacksonic/vjlofvhjfgm