removed empty if block