Cleaning up PHP