Fixed php version and wrong return value