Simplified an if Statement.