no need for the function - you can just have the `!!(...)` bit (same is true of the rest of these detects)