Fixed binding
Checking child exists before returning pid