you could make this more concise. There's a lot of unnecessary variables (overhead) created for this simple check.