return false if object undefined
set x and y to null when off canvas