Check select presence before emptying it.
Updated third parties.