export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting

if (( $+commands[rvm] ))
then
  export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
fi

Check for RVM existence before tweaking $PATH
Check for RVM existence before tweaking $PATH
