Always use &&, || in conditions (not 'and', 'or')
Use Application instance instead of class methods