A guard clause is a coding approach for pulling out validation and edge case checks scattered throughout a method and putting them at the start of the method (to validate input parameters) and / or at the end of a method (to validate output after the main processing has taken place in a method). My