If our hearts condemn us for some deliberate disobedience to God then we cannot pray with confidence. However, if keep God's commands—especially the command to love one another—then we are abiding in Christ and we can then pray with confidence.