PATH=~/bin:~/.local/bin:$PATH

if [ -d ~/bin ]; then
    PATH=$PATH:~/bin
fi
if [ -d ~/.local/bin ]; then
    PATH=$PATH:~/.local/bin
fi

Add paths to PATH only if they exist
fix: Add paths to PATH only if they exist
