Hydraulic cylinder with front flange and pilot operated check valve