Checks if ruby variables are defined