Simplified php logic