check pyside before deleting