It seems a bit esoteric to be honest and likely makes it a candidate for a private method instead of a general utility method by adding that boolean. whats your opinion?