I find prayer is much more insidious than that. A see it as a ritual, taught when very young, that you may do by yourself to reinforce the doctrine through repetition. Reinforces the number one rule of the doctrine.
There is a god.
That is very true. Though I think that Harrison's post is also true, and that indeed the two may reinforce each other.