Used ternary operator instead of "or" for constant definition
Changed "and" to "&&"
Removed unused "use" statements