Check for Flag Arguments

Based on The "Clean Code" book, passed a boolean into a function is a bad practice to avoid, because functions with flags arguments do one than more thing, one if the flag is true and another if the flag is false.