exception if depth passed on php < 5.5; do not pass depth for php < 5.5