Delete old function and compare for old php version