add check for binary operations on undefined values