SyntaxFix
Write A Post
Hire A Developer
Questions
Why not just catch the exception, and return False?
This avoids additional overhead in the common case.