Swapped assertion for an if statement to declutter output.