Move isSimpleChain predicate to a separate function
Move isSimpleChain predicate to a separate function

wikimedia/mediawiki-services-restbase,wikimedia/restbase,wikimedia/mediawiki-services-restbase,eevans/restbase,milimetric/restbase,milimetric/restbase,cscott/restbase,wikimedia/restbase,inverno/restbase,gwicke/restbase,inverno/restbase,wikimedia/hyperswitch,gwicke/restbase,d00rman/restbase,eevans/restbase,Pchelolo/restbase,cscott/restbase,Pchelolo/restbase,d00rman/restbase