Refactored frontblock conditional