Add has_pid? function

[SeeRM:#8123] - Add commonly used function has_pid?. Related to
redmine issue 8123.
These modules should check PID before using it
Land #2049, @wchen-r7's had_pid? method work
Fix method documentation