<?php foreach ($productsFound as $key => $product): ?>
<?php if($key == 0): ?>
//code here
<?php endif;?>
<?php endforeach; ?>
var express = require('express')
, engine = require('ejs-locals')
, app = express();
// use ejs-locals for all ejs templates:
app.engine('ejs', engine);