Jan 5, 2023
You are correct. Your method is faster and more efficient as it avoids an additional expensive function call. I guess I didn't consider it as I've never been a fan of the "if with a short statement" syntax, but I guess I'd better start getting used to it as there's no question it's more efficient.
Thank you!