Access safely access the rstudioapi when available