for width and height can be either a string or false so we need to check the type and for showMap I don't know :) I probably did not pay attention to this.