proper ruby nil checks