move this check outside the block - the App class has the template method, too!