PHP Demo
PHP Code Output
(This is not empty) Anna = 5000
(This is empty) John = 0
(This is not empty) Aamir = 10000