If in your birth chart, moon is in the place where there is no planet on either sides, this formation is called as Kemdrum Yoga. With this yoga if Moon is occupying the 2nd or 12th house, it is considered very inauspicious.
With no planet around Moon gives him more power which can influence the native chart badly. If present then it does not make any difference.
It is considered that Moon effects on mind. Kemdrum yoga is the outcome when the person think useless because of emptiness.