The previous method had a few too many nested if statements, making it difficult to track when and where the function stopped executing.
The previous method had a few too many nested if statements, making it difficult to track when and where the function stopped executing.