Update drupalgap.js

Simple function to test for empty.