This is deprecated in forests. You can remove this if-statement.